package component.fulltextsearch.constant;

import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

public abstract class SearchConstant {
	
	public static final String NAME_KEYVALUE = "keyValue";	//关键值,具有唯一性
	public static final String NAME_RIGHTUSERS = "rightUsers";//拥有权限的用户
	public static final String NAME_RIGHTROLES = "rightRoles";//拥有权限的角色
	public static final String NAME_TYPECODE = "typeCode";//内容分类编码
	public static final String NAME_NAME = "name";//标题
	public static final String NAME_KEYWORDS = "keywords";//关键字
	public static final String NAME_SUMMARY = "summary";//摘要
	public static final String NAME_CONTENT = "content";//内容
	public static final String NAME_ATTACHMENTCONTENT = "attachmentContent";//附件
	public static final String NAME_CREATETIME = "createTime";//创建时间
	public static final String NAME_BUSINESSSTRING = "businessString";//业务字符串
	public static final String NAME_ISDELETE = "isDelete";//删除所有的标记
	
	public static final String PAGE_CONTENT = "pageContent";//页面上显示的内容
	
	public static final String RIGHT_PUB = "PUB";//公共用户，拥有所有权限
	
	public static final String DELETE_FLAG = "true";//可以删除的索引标记
	
	public static final String[] SEARCHER_FIELD_NAMES = new String[]{NAME_NAME,NAME_KEYWORDS,NAME_TYPECODE,NAME_SUMMARY,NAME_CONTENT,NAME_ATTACHMENTCONTENT,NAME_ISDELETE};
	public static Map searchNameMap = new HashMap();
	static{
		searchNameMap.put(NAME_NAME, "标题");
		searchNameMap.put(NAME_KEYWORDS, "关键字");
		searchNameMap.put(NAME_TYPECODE, "分类");
		searchNameMap.put(NAME_SUMMARY, "摘要");
		searchNameMap.put(NAME_CONTENT, "内容");
		searchNameMap.put(NAME_ATTACHMENTCONTENT, "附件");
		searchNameMap.put(NAME_ISDELETE, "是否可删除");
	}
	
	
	public static final SimpleDateFormat DATA_FORMAT = new SimpleDateFormat("yyyyMMdd");
}
